Block constructs such as admonitions, content tabs, definition lists, and md_in_html are rewritten into an HTML wrapper with blank lines around a Markdown body. A CommonMark HTML block ends at a blank line, so the renderer parses the body as ordinary Markdown, and nested constructs need no second render pass. The wrapper markup comes from the same functions that render native Vyasa callouts and tabs (_render_callout and render_tabs_html), so MkDocs pages and Vyasa pages produce the same HTML.
The rewrite runs through the markdown.translator extension hook. Vyasa calls every registered translator first in from_md and in TOC heading extraction, so the TOC and the rendered page see the same headings. Other hooks added for this extension:
content_source.posts_tree: replaces the filesystem sidebar tree.